/* 改变主题色变量 */
//$--color-primary: $theme-font-color;
//
///* 改变 icon 字体路径变量，必需 */
//$--font-path: '~element-ui/lib/theme-chalk/fonts';
//
///* 如果外部引入了则这个不需要在此引入了 */
//@import "~element-ui/packages/theme-chalk/src/index";
//

/*重置input*/
.el-input {
    height: $input-height;
    display: inline-block;

    .el-input__inner {
        padding: 0 10px 0 10px;
        line-height: $input-height;
        height: $input-height;
        border-radius: $input-border-radius;
        border-color: $input-border-color;
        color: $base-font-color;

        &:focus,
        &:hover {
            border-color: $input-border-color;
        }
    }

    .el-input__icon {
        line-height: $input-height;

        &::before {
            color: #bfcbd9;
        }
    }
}

.el-date-editor .el-input__prefix {
    top: 0;
}

.el-textarea {
    display: inline-block;

    .el-textarea__inner {
        border-radius: $input-border-radius;
        border-color: $input-border-color;
        color: $base-font-color;
        padding: 5px 10px;
    }
}

.el-breadcrumb {
    .el-breadcrumb__inner {
        font-weight: normal;
        font-size: 13px;
        //color: 333;

        //&.is-link {
        //    cursor: pointer;
        //    font-weight: normal;
        //    font-size: 13px;
        //    color: $theme-font-color;
        //
        //    &:hover {
        //        cursor: pointer;
        //        color: $theme-font-color;
        //    }
        //}
    }

    .el-breadcrumb__item:last-child .el-breadcrumb__inner {
        &:hover {
            color: $theme-font-color;
        }

        color: $theme-font-color;
    }

    .el-breadcrumb__separator {
        margin: 0 2px;
    }

    .cap > .el-breadcrumb__separator {
        margin: 0 6px;

        &::before {
            content: ":";
        }
    }
}

/* 禁用样式下 */
.el-input.is-disabled .el-input__inner {
    background-color: #eee;
    border-color: #ccc;
    color: #333;
}

.el-input.is-disabled .el-input__inner::placeholder {
    color: #aaa;
}

.el-radio__input.is-disabled + span.el-radio__label {
    color: #999;
}

.el-textarea.is-disabled .el-textarea__inner{
    background-color: #eee;
}

/* 重置select */
.el-select {
    height: $input-height;
    border-radius: $input-border-radius;
    outline: none;

    .el-input__inner {
        border-color: $input-border-color;
    }

    .el-input.is-focus .el-input__inner {
        border-color: $input-border-color;
    }

    .el-icon-arrow-up:before {
        content: '';
        position: absolute;
        top: 15px;
        left: 8px;
        border-top: 6px solid #bfcbd9;
        border-bottom: 6px solid transparent;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
    }
}

.el-select .el-input .el-select__caret,
.el-select .el-input .el-select__caret.is-reverse {
    //transform: none !important;
    //transition: none !important;
}

.el-select-dropdown__item.selected{
    color: $theme-font-color;
}

/* 重置el-radio-button */
.el-radio-button__orig-radio:checked+.el-radio-button__inner{
    background-color: $theme-font-color;
    border-color: $theme-font-color;
}

.el-radio-button__inner:hover{
    color: $theme-font-color;
}

.el-radio-button__inner{
    border-color: $base-border-color;
}

/* 地址组件 */
.my-address-picker {
    border: 1px solid transparent;
    display: inline-block;
}

.el-form-item.is-error .my-address-picker {
    border: 1px solid #f56c6c;
    border-radius: 3px;

    .el-input__inner {
        border-color: #dee3f0;
    }
}

/* 富文本组件 */
.el-form-item.is-error .my-rich-editor {
    .ke-container {
        border: 1px solid #f56c6c;
    }
}

.el-button.el-button--default {
    height: 34px;
    padding: 0 20px;
    background-color: transparent;

    &:hover {
        background-color: transparent;
        border-color: $btn-primary-color;
    }

    > span {
        line-height: 26px;
        display: inline-block;
        color: $btn-primary-color;
    }
}

/*重置button*/
.el-button.el-button--primary {
    height: 34px;
    padding: 0 20px;
    background-color: $btn-primary-color;
    border-color: $btn-primary-color;

    &:hover {
        background-color: $btn-primary-color-active;
        border-color: $btn-primary-color-active;
    }

    > span {
        line-height: 26px;
        display: inline-block;
        color: #fff;
    }

    &.is-disabled {
        background-color: #ccc;
        color: #333;
        border-color: #ccc;

        > span {
            color: #333;
        }
    }

    &:active {
        opacity: .6;
    }
}

.el-button.el-button--danger {

}

.el-radio {
    .el-radio__label {
        padding-left: 5px;
    }

    .el-radio__inner {
        background-color: #fff;
        //border-color: $theme-font-color;
    }
    //
    &.is-checked {
        .el-radio__inner {
            border-color: $theme-font-color;
            background: $theme-font-color;
        }
        .el-radio__label {
            color: $theme-font-color;
        }
    }
}

//
//.el-radio__input.is-checked + .el-radio__label {
//    color: #333;
//    font-weight: bold;
//}
//
//.input-text .el-radio {
//    margin-top: 5px;
//}

/* 分页器 */
.el-pagination {
    text-align: center;
    margin-top: 10px;

    &.is-background {
        .el-pager li,
        .btn-prev {
            margin: 0 3px;
            min-width: 25px;
            line-height: 25px;
            height: 25px;
        }
    }
}

/* 加载 */
.el-loading-mask {
    //opacity: .3;
}

.el-icon-loading.rotate-icon {
    display: inline-block;
    width: 75px;
    height: 75px;
    -webkit-animation: none;
    animation: none;

    &:before {
        content: "";
    }
}

.el-tooltip__popper.poshytips {
    max-width: 300px;
    line-height: 1.2;
    padding: 4px 5px;
    background-color: rgba(0, 0, 0, .4);
    animation: fade-in .2s;
    animation-fill-mode: both;

    .popper__arrow {
        border-top-color:  rgba(0, 0, 0, .4);
        &:after{
            border-top-color: rgba(0, 0, 0, .4);
        }
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(0%);
    }
    100% {
        opacity: 1;
        transform: translateY(-30%);
    }
}


.el-form-item {
    margin-bottom: 10px;
}

.el-form-item__label {
    color: #666;
}

.no-important .el-form-item__label::before {
    content: '' !important;
}

.el-input,
.el-select,
.el-radio,
.el-textarea,
.el-radio-group,
.el-autocomplete,
.my-address-picker,
.my-datetime-picker {
    + .el-form-item__error {
        margin-top: 0;
    }
}
.el-checkbox-group + .el-form-item__error{
    padding-top: 0;
}

.el-autocomplete-suggestion {
    li {
        padding: 0 8px;
        line-height: 30px;

        &:hover {
            background-color: #ebedf1;
        }
    }

    .el-autocomplete-suggestion__wrap {
        padding: 0;
    }
}

.el-radio-button__inner{
    height: $input-height;
    line-height: $input-height - 1;
    padding: 0 20px;
}

/*重置日历input样式*/
.el-date-editor {
    input.el-input__inner {
        padding-right: 30px;
    }

    .el-input__icon {
        line-height: $input-height;
    }

    .el-input__prefix {
        left: auto;
        right: 5px;

        .el-icon-date {
            font-size: 20px;
            color: #333;
        }
    }

    .el-input__suffix {
        right: 25px;
    }
}

.el-checkbox-group{
    vertical-align: middle;
    display: inline-block;
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
    border-color: $theme-font-color;
    background-color: $theme-font-color;
}

.el-checkbox__input.is-disabled + span.el-checkbox__label {
    color: #bbb;
}

/* 在 el-form-item 上面直接加上 .no-require*/
.el-form-item.no-require:not(.is-no-asterisk) > .el-form-item__label:before {
    content: ''
}

/*el-upload*/

.el-upload {
}


.el-upload--picture-card {
    width: 100px;
    height: 100px;
    line-height: 100px;
    background-color: #fff;

    &:hover,
    &:focus {
        border-color: $theme-font-color;
    }
    >img{
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.is-disabled + .el-upload.el-upload--picture-card {
    background-color: #eee;
}
.is-error .el-upload.el-upload--picture-card {
    border-color: #F56C6C;
}

.el-upload-list--picture-card {
    .el-upload-list__item {
        width: 100px;
        height: 100px;
        margin-right: 15px;
    }

    .el-upload-list__item-preview {
        color: #fff;
    }
}
.el-date-editor .el-range-separator{
    width: auto !important;
}

.el-dialog__header{
    border-bottom: 1px solid #ddd;
}
.el-range-editor.el-input__inner{
    height: 35px;
    line-height: 35px;
}
.el-date-editor .el-input__icon {
    line-height: 28px;
}
.el-image-viewer__close .el-icon-circle-close{
    font-size: 60px !important;
    color: #fff !important;
}



